package com.tyk.bookstore.back.payment.model.query;

import com.tyk.bookstore.back.payment.model.enume.AmountLogType;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author tyk
 * @description 系统余额变更日志
 */
@Data
@Schema(name = "AmountLogUpdateQuery", description = "系统余额变更日志")
public class AmountLogUpdateQuery implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "ID")
    @NotNull
    @Min(value = 1)
    private Long id;

    @Schema(description = "会员ID")
    @NotNull
    @Min(value = 1)
    private Long memberId;

    @Schema(description = "变更值")
    @NotNull
    private BigDecimal modification;

    @Schema(description = "变更类型[0充值,1订单支付]")
    @NotNull
    private AmountLogType type;

    @Schema(description = "第三方交易ID")
    @NotNull
    @Min(value = 1)
    private Long outTradeId;

}
